{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "84faf27a",
   "metadata": {},
   "source": [
    "## 本周学习内容—Python初认识"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "ce24aef4",
   "metadata": {},
   "source": [
    "### 1.[Anaconda](https://www.anaconda.com/products/individual)的安装和配置"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "139ddf16",
   "metadata": {},
   "source": [
    "#### 注意事项 "
   ]
  },
  {
   "cell_type": "markdown",
   "id": "117adfb6",
   "metadata": {},
   "source": [
    "* （1）选择自动配置环境变量 — 在安装过程当中选择勾选 all user和add "
   ]
  },
  {
   "cell_type": "markdown",
   "id": "529b18e2",
   "metadata": {},
   "source": [
    "* （2）手动配置环境变量—在安装成功后进行配置"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f9c7edde",
   "metadata": {},
   "source": [
    "* 【右键计算机】--》【属性】--》【高级系统设置】--》【高级】--》【环境变量】--》【在第二个内容框中找到 变量名为Path 的一行，双击】 --> 【Python安装目录追加到变值值中，用 ； 分割】"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "d0243c31",
   "metadata": {},
   "source": [
    "### 2.检查Anaconda是否安装成功"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "898d3c9d",
   "metadata": {},
   "source": [
    "* 打开cmd直接执行conda查看是否显示路径等"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7c6a0f93",
   "metadata": {},
   "source": [
    "### 3.python是什么样的语言？"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "71ed739f",
   "metadata": {},
   "source": [
    "* python是一门动态解释性的强类型定义语言"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "7fcf340e",
   "metadata": {},
   "source": [
    "### 4.python运行hello world"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "633f3d5e",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "hello world\n"
     ]
    }
   ],
   "source": [
    "print(\"hello world\")"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8d3d845c",
   "metadata": {},
   "source": [
    "### 5.什么是IDE？"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "b628ab96",
   "metadata": {},
   "source": [
    "* IDE是集成开发环境"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "c4f8ec19",
   "metadata": {},
   "source": [
    "* IDLE是Python提供的一个内置IDE"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "32102e73",
   "metadata": {},
   "source": [
    "### 6.观察标准库"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "aba2725f",
   "metadata": {},
   "source": [
    "* import是导出、拿出"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "b9d75600",
   "metadata": {},
   "outputs": [],
   "source": [
    "import sys"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "e993f550",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'win32'"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sys.platform"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "bf24c0b5",
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'3.8.8 (default, Apr 13 2021, 15:08:03) [MSC v.1916 64 bit (AMD64)]'"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "sys.version"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "7a93d095",
   "metadata": {},
   "outputs": [],
   "source": [
    "import os"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "66d460d8",
   "metadata": {},
   "outputs": [],
   "source": [
    "os.getcwd()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6b3a0e6f",
   "metadata": {},
   "outputs": [],
   "source": [
    "os.environ"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "30c73f8e",
   "metadata": {},
   "outputs": [],
   "source": [
    "import datetime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4bc7460d",
   "metadata": {},
   "outputs": [],
   "source": [
    "datetime.date.today()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "59aee6e4",
   "metadata": {},
   "outputs": [],
   "source": [
    "import datetime"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e5ad85e5",
   "metadata": {},
   "outputs": [],
   "source": [
    "datetime.date.today().day"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "36f13876",
   "metadata": {},
   "outputs": [],
   "source": [
    "datetime.date.today().month"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "79c1cc07",
   "metadata": {},
   "outputs": [],
   "source": [
    "datetime.date.today().year"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
